package com.villaday.idf.custom.pop;

import android.content.Context;
import android.graphics.Color;
import android.view.View;
import android.widget.TextView;

import com.villaday.idf.R;

import razerdp.basepopup.BasePopupWindow;

public class SendEmailPop extends BasePopupWindow {

    private Context mContext;

    public SendEmailPop(Context context,String content) {
        super(context);
        mContext = context;
        setBackground(0);
        setOutSideDismiss(false);
        setKeepSize(true);
        setPopupFadeEnable(false);
        setBackgroundColor(Color.parseColor("#B3000000"));
        setBlurBackgroundEnable(true);
        findViewById(R.id.tv_cancle).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismiss();
            }
        });

        TextView tv_content = findViewById(R.id.tv_content);
        tv_content.setText(content);
    }


    @Override
    public View onCreateContentView() {
        return createPopupById(R.layout.send_email_pop);
    }
}
